$('document').ready(function(){		
	$('#frmNational').validate({
            errorClass      : 'error',
            errorElement	: 'span',
    		onfocusout		: false,
    		onkeyup			: false,
    		ignore			: 'input[type="text"]:hidden',
			rules:{
				"nationalid[]":{
					required:true,
                    minlength:1					
				}
			},
			messages:{
				"nationalid[]":{
                    required : 'Chon 1 quoc gia de',
                    minlength: 'Choon it nhat 1 quoc tich'                    
                }
			},
			errorPlacement: function(error, element) {
			       error.insertAfter(element); // change this to place error message elsewhere
			}			
	});    
});

actionSearch = function() {	
	var strStart  = $('#startdate').val();
	var strEnd	  = $('#enddate').val();
	if(strStart == "" && strEnd == "") {
		alert(key_search_required);
		return false;
	}
}
